package com.example.codeger.html;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class HtmlCodeGen {

    public static void main(String[] args) throws IOException {
        // 准备数据
        Map<String, Object> data = new HashMap<>();
        data.put("name", "Hutool");
        data.put("htmlbodyStr", "Hutool");
        HtmlSourceBuilder htmlSourceBuilder = HtmlSourceBuilder.builder()
                //1.文件模板路径(带名后缀)
                .templateFilePath("templates/html/index.btl").data(data).build();


        //获取模板处理
        htmlSourceBuilder.handler();

    }
}